<?php

include_once '../inc/conn.php';
include_once 'delete_byid.php';
header("Content-Type: text/html;charset=utf-8");
	if(!empty($_REQUEST['id'])){
		$get_id=$_REQUEST['id'];
		$user_id = explode('|',substr($get_id,0,strlen($get_id)-1)) ;
		
		$de=new delet_byid();
		
		$de->delete($user_id,$oa,"message","message_id","listtakexiaoxi.php");
	}
	
  else{
  	echo "<script>alert(请选择要删除项);window.history.back();</script>";
  }
?>